Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(database_task): check schema_migration table check to connection pool #339

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

jgmontoya
Copy link
Contributor

@jgmontoya jgmontoya commented Sep 19, 2024

Current db:prepare:with_data task is broken for rails 7.2 after this change: rails/rails#51162

This PR moves the check to use the proper method database_exists?

I removed a test file that was probably introduced by mistake.

I also refactored the task a bit to try and make it compatible with rails 6.1 (not 100% sure if it's working now, but I know for sure it wasn't before 😅) and added some tests for the task.

@jgmontoya jgmontoya force-pushed the fix/prepare-with-data-task branch 4 times, most recently from 050574d to f16a4d5 Compare September 19, 2024 20:58
Copy link
Collaborator

@vprigent vprigent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting an error for Rails 6.1 however its not related to your changes as far as I know (and as you mentioned, your patch fixes another error coming from Rails 6.1 too).

While I'd be keen to extend support for older versions, we haven't added a single new feature to data_migrate in 11.x that's relevant for older Rails versions.

@vprigent vprigent merged commit 9822b60 into ilyakatz:main Sep 22, 2024
13 checks passed
@jgmontoya jgmontoya deleted the fix/prepare-with-data-task branch September 22, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants